<?php

!defined('SYSTEM_INCLUDED') && exit('Access Denied');

Class IndexController extends BaseController{
	
	public function Index(){
		$model = new BaseModel();
		$result = $model->db->query("SELECT tagname, count(tagname) as counttags FROM tc_articletags GROUP BY tagname ORDER BY counttags DESC");
		$this->view->assign('result',$result);
        $this->view->display();
	}
	
}